package com.biz.primus.auth;

import com.biz.primus.auth.config.AuthConfig;
import com.biz.primus.account.config.CasConfig;
import com.biz.primus.management.base.config.BaseConfiguration;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.context.embedded.ConfigurableEmbeddedServletContainer;
import org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizer;
import org.springframework.boot.web.support.SpringBootServletInitializer;
import org.springframework.cloud.client.SpringCloudApplication;
import org.springframework.cloud.netflix.feign.EnableFeignClients;
import org.springframework.context.annotation.Import;

/**
 * Created by younger on 17/11/8.
 */
@SpringCloudApplication
@Import({BaseConfiguration.class, AuthConfig.class, CasConfig.class})
@EnableFeignClients
public class AuthManagementAppliction extends SpringBootServletInitializer implements EmbeddedServletContainerCustomizer {

    public static void main(String[] args) {
        new SpringApplicationBuilder().web(true).run(args);
    }

    @Override
    public void customize(ConfigurableEmbeddedServletContainer configurableEmbeddedServletContainer) {

    }
}
